<?php
@session_start();

?>

<style>

	#calendar {
		max-width: 900px;
		margin: 0 auto;
	}

</style>



	<div id='calendar'></div>


<script>

	$(document).ready(function() {
$.ajax({
url:"calendar_json.php?temp=<?php echo $_SESSION["id"]?>",
success:function(resp){

$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			defaultDate: '2015-01-1',
			businessHours: true, // display business hours
			editable: false,
			events:"json/events.json"
		});
}
});
		
		
	});

</script>